﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GcmpGuiMainFrameInterface.h"

#include <string>

namespace gcmp
{
/// \brief 页面弹出窗口接口
FINAL_INTERFACE class GCMP_GUI_MAIN_FRAME_INTERFACE_EXPORT IRibbonPageSystemPopup
{
public:
    /// \brief 添加菜单
    ///
    /// \param commandId  命令的id
    /// \param caption    控件标题
    /// \param toolTip    提示文字
    /// \param iconPath   图标路径
    /// \return 添加成功返回true,失败返回false
    virtual bool AddItem(const std::wstring& commandId, const std::wstring& caption, const std::wstring& toolTip, const std::wstring& iconPath) = 0;

    /// \brief 设置页面弹出窗口的最小尺寸
    ///
    /// \param minWidth    最小宽度
    /// \param minHeight   最小高度
    /// \return 设置成功返回true,失败返回false
    virtual bool SetMinimumSize(int minWidth, int minHeight) = 0;

    /// \brief 添加分隔符
    /// \return 添加成功返回true,失败返回false
    virtual bool AddSeparator() = 0;

    /// \brief 析构函数
    virtual ~IRibbonPageSystemPopup();
};

}   // end namespace gcmp
